var utils = (function() {
    var createAllGems = Class.create({
        init: function(holder) {
             this.holder = holder;
              for (var row = 1; row < 10; row++) {
                for (var col = 1; col < 10; col++) {
                    var randomNumber = Math.floor((Math.random() * 7) + 1);
                    var color = getColor(randomNumber);
                    
                    var newGem = GameObject.newGem('a' + row, col, color, this.holder);
                    newGem.render();
                    
                }
            }
        }
    });
    
    var getColor = function(number) {
        
        var newColorArray = new Array('black', 'green', 'pink', 'white', 'red', 'blue', 'purple');
        return newColorArray[number];
    };

    return {
        createAllGems: function(holder) {
            return new createAllGems(holder);
        }
    };
})();